From: Andy Holmes Date: Sat, 25 Feb 2023 20:24:46 +0000 (-0800) Subject: quickSettings: Add a getter for the deprecated label property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~393^2^2~62 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5449c3e83ec7eff32f19d34d7390ea5b67ff7a97;p=gnome-shell.git quickSettings: Add a getter for the deprecated label property Since the `label` property was deprecated there have already been reports of fatal errors for some extensions, so add a deprecated getter with a warning to ease migration. Part-of: --- diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index 4868cf6b3..d0dc2e996 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -124,6 +124,11 @@ var QuickToggle = GObject.registerClass({ null); } + get label() { + console.warn('Trying to get label from QuickToggle. Use title instead.'); + return this.title; + } + set label(label) { console.warn('Trying to set label on QuickToggle. Use title instead.'); this.title = label;